package com.edu.medicalpro.mvp;


import com.edu.medicalpro.bean.Doctor1;
import com.edu.medicalpro.bean.DoctorData;
import com.edu.medicalpro.bean.PatientResult;
import com.edu.medicalpro.bean.User;
import com.edu.medicalpro.bean.YIYuanJiesShao;

import io.reactivex.rxjava3.core.Flowable;
import io.reactivex.rxjava3.core.Observable;

public interface HomeContrace {

    interface IHomePresenter{
        void login(String name,String passwrod);
        void addPatient( Doctor1 doctor);
        void getDoctor(int pageNum,int pageSize);
        void getYYJS();
    }

    interface IHomeModel{
        Flowable<User> login(String name, String password);
        Observable<PatientResult>addPatient( Doctor1 doctor);
        Flowable<DoctorData> getDoctor(int pageNum, int pageSize);
        Observable<YIYuanJiesShao<YIYuanJiesShao.DeanInfoBean>>getYYJS();
    }

    interface  IView{
       void loginResult(User user);
       void LoginError(Throwable throwable);
        void Result(PatientResult user);
        void DoctorResult(DoctorData doctor);

    }

    interface YiYuanJieShaoView{
        void YiYuanJieShao(YIYuanJiesShao jiesShao);
    }
}
